import {
  Component, OnInit, ViewEncapsulation, Input, EventEmitter,
  Output
} from '@angular/core';


@Component({
  selector: 'class-item',
  templateUrl: './class-item.component.html',
  styleUrls: ['./class-item.component.scss'],
  encapsulation: ViewEncapsulation.None
})
export class ClassItemComponent implements OnInit {
  @Input() class;
  @Input() rightContentType;
  @Output() clicked = new EventEmitter();

  public stateArr = ['未开课', '上课中', '已上完'];
  public classType = ['专', '综', '次'];

  constructor() {
  }

  goToTarget() {
    this.clicked.emit();
  }

  ngOnInit() {
  }
}
